import { IUser } from "@/apis/types";
import { RootState } from "@/store";
import { RouteRecordRaw } from "vue-router";
import { ActionContext } from "vuex";

export declare interface IUserActions {
    [key: string]: (ctx: ActionContext<IUserState, RootState>, payload: any) => void
}

export declare interface IUserGetter {
    [key: string]: (state: IUserState, rootState?: RootState) => any;
}
export declare interface IUserState {
    user: IUser
    asyncRoutes: Array<RouteRecordRaw>
    rootFilePath: string
}